<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Student/index_student')}">成绩列表</a></li>
        <li><a href="{:url('Student/add_Student')}">录入成绩</a></li>
    </ul>
    <!-- 搜索 -->
    <form class="well form-inline margin-top-20" method="get" action="{:url('Student/index_student')}">
        学生姓名：
        <input type="text" class="form-control" value="{$Request.param.name}" name="name" style="width: 150px;"  placeholder="请输入学生姓名">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('Student/index_student')}">清空</a>
    </form>
    <!-- 搜索结束 -->

    <form class="margin-top-20 js-ajax-form" action="{:url('Student/batchDelete')}">
        <div class="table-actions">
            <button class="btn btn-danger btn-sm js-ajax-submit" type="submit"
                    data-subcheck="true" onclick="return confirm('确定删除吗？');">
                批量删除
            </button>
        </div>
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></th>
                <th>ID</th>
                <th>学生姓名</th>
                <th>日常表现</th>
                <th>扣分原因</th>

            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td><input type="checkbox" class="js-check" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
                    <td>{$key + 1}</td>
                    <td>{$vo.student.name}</td>
                    <td>{$vo.point.score}</td>
                    <td>{$vo.desc}</td>

                </tr>
            </foreach>
            </tbody>
        </table>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>